<!--
 * @Author: lisong
 * @Date: 2023-04-13 16:10:48
 * @LastEditors: ZHM zhuimin111@163.com
 * @LastEditTime: 2023-04-26 09:51:33
 * @Description: 专项债券项目一户式
-->
<template>
  <vxe-modal
    class-name="rk-modal rk-busi-modal"
    v-if="visible"
    resize
    transfer
    show-zoom
    fullscreen
    destroyOnClose
    v-model="visible"
    width="1000"
    height="600"
    :z-index="1002"
    min-width="460"
    min-height="320"
    @close="handleClose"
  >
    <template #title>{{ echoFormData.title | '项目详情' }}</template>
    <template #default>
      <ProjectPreYhsPanel v-bind="params" />
    </template>
  </vxe-modal>
</template>

<script setup name="ProjectPreYhsDialog">
import ProjectPreYhsPanel from '@/components/form/business/ProjectPreYhsPanel.vue'

const params = ref({
  proId: '5382107EB11B483DA19DD22304D650F7',
  formId: '145EFEE25B5F4CF5B6A22C2A47820A52'
})

// ----- 弹窗相关操作
// 是否展示弹窗
const visible = ref(false)

/**
 * 打开弹窗
 * @param {Object} config 配置信息
 */
const handleOpen = async (config) => {
  visible.value = true
}
/**
 * 关闭弹窗
 */
const handleClose = () => {
  visible.value = false
  loading.value = false
}

// 对外暴露方法
defineExpose({
  handleOpen
})

</script>

<style lang="scss" scoped>
</style>
